/*
 * @Author: nccloud
 * @PageInfo: 新增
 */
import { UISTATUS,BILLTYPECODE,AREA  } from '../../constance';
import { buttonControl } from '../viewControl/buttonControl';
import { clearCardData, mainOrgInit } from '../utils/cardPageUtil';
import { ajax, cardCache, toast, getBusinessInfo } from 'nc-lightapp-front';

export default function(props) {
       
        props.setUrlParam({ status: UISTATUS.add });
        clearCardData.call(this, props);
        buttonControl.call(this, props);
        mainOrgInit.call(this, props, this.contexts);
        let groupName = getBusinessInfo().groupName;
        let groupId = getBusinessInfo().groupId;
        let dbilldate = getBusinessInfo().businessDate;
        props.form.setFormItemsValue(AREA.cardHead, { ['dbilldate']: { value: dbilldate } });
        props.form.setFormItemsValue(AREA.cardHead, { ['pk_group']: { value: groupId ,display:groupName } }); 
        props.form.setFormItemsValue(AREA.cardHead, { ['billtype']: { value: BILLTYPECODE } });

}
